package com.emm.yixun.customer.service.impl;

import java.util.List;
import java.util.Map;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.customer.service.SendMessageServiceFacade;
import com.emm.yixun.customer.service.impl.app.ActivitiProcessServiceImpl;

@Service("sendMessageServiceFacade")
@WebService(name="com.emm.yixun.customer.service.SendMessageServiceFacade")
public class SendMessageServiceFacadeImpl implements SendMessageServiceFacade{
    
	@Autowired
	private SendMessageService sendMessageService;
	
	@Autowired
	private ActivitiProcessServiceImpl activitiProcessService;
	
	@Override
	public void applyMessageSend(String processInstanceId,String nextNodeId,List<String> userIdList) {
		// TODO Auto-generated method stub
		sendMessageService.applyMessageSend(processInstanceId,nextNodeId, userIdList);
	}

	@Override
	public String startDiscountProcessInstance(Long merchantId, Long projectId,
			String processDefinitionKey, String businessKey,
			Map<String, Object> variables) {
		// TODO Auto-generated method stub
		return activitiProcessService.startProcessInstance(merchantId, projectId, processDefinitionKey, businessKey, variables);
	}


     
}
